<?php

include_once dirname(__FILE__)."/../database/database.class.php";
include_once dirname(__FILE__)."/../classes/collection.class.php";

if(!isset($_COOKIE["MGTDatabase_user"]) || !is_numeric($_COOKIE["MGTDatabase_user"]))
{
  $_COOKIE["MGTDatabase_user"] = 0;
}

if(!isset($_GET['collectionId']) || !is_numeric($_GET['collectionId']))
  echo "Total: 0 (0)";
else
{
  $collection = new Collection($_GET['collectionId']);

  echo 'Total: '.$collection->getSize().' ('.$collection->getUniqueSize().')';
}
?>
